package cn.sxw.ld.module.image.service.impl;

import cn.sxw.ld.module.image.mapper.ImageMapper;
import cn.sxw.ld.module.image.pojo.Image;
import cn.sxw.ld.module.image.service.ImageService;
import cn.sxw.ld.module.scrolling.pojo.Scrolling;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * ClassName:ImageServiceImpl
 * Package:cn.sjxy.graduation.service.impl
 * Description:
 *
 * @Date:2022/6/25 17:56
 * @Author:SXW
 */
@Service
public class ImageServiceImpl extends ServiceImpl<ImageMapper, Image> implements ImageService {


    @Override
    public Page getPage(int page, int pageSize) {
        // 分页查询
        Page<Image> pageInfo = new Page<>(page, pageSize);
        this.page(pageInfo);
        return pageInfo;
    }
}
